package cn.org.service;

import java.util.List;

import cn.org.domain.Org;
import cn.org.domain.Person;
import cn.org.domain.PersonOrgPos;
import cn.org.domain.Position;

public interface IPersonService {
	 int deleteByPrimaryKey(Integer id);

	    int insert(Person record);

	    int insertSelective(Person record);

	    Person selectByPrimaryKey(Integer id);

	    int updateByPrimaryKeySelective(Person record);

	    int updateByPrimaryKey(Person record);
	    
	    List<Person> getALLPerson();
	    List<Person> getPersonsByOrg(Org org);
	    List<Person> getPersonsByPos(Position pos);
	    Person getPersonByName(String name);
	    
	    int insertPersonOrgPos(PersonOrgPos pop);
	    int updateByPrimaryKey(PersonOrgPos record);
	    
	    PersonOrgPos selectByPOP(int org_id,int person_id,int pos_id);
	    
	    int deletePop(Integer id);
	    List<PersonOrgPos> selectByPerson(Person p);
}
